import request from '@/utils/request'

// 查询内部治理架构列表
export function listGpInsideFramework(query) {
  return request({
    url: '/gp/gpInsideFramework/list',
    method: 'get',
    params: query
  })
}

// 查询内部治理架构详细
export function getGpInsideFramework(id) {
  return request({
    url: '/gp/gpInsideFramework/' + id,
    method: 'get'
  })
}

// 保存内部治理架构
export function saveGpInsideFramework(data) {
  return request({
    url: '/gp/gpInsideFramework/save',
    method: 'post',
    data: data
  })
}

// 删除内部治理架构
export function delGpInsideFramework(id) {
  return request({
    url: '/gp/gpInsideFramework/' + id,
    method: 'delete'
  })
}

// 导出内部治理架构
export function exportGpInsideFramework(query) {
  return request({
    url: '/gp/gpInsideFramework/export',
    method: 'get',
    params: query
  })
}

// 查询内部治理架构详细
export function getGpInsideFrameworkByGpId(gpId) {
  return request({
    url: '/gp/gpInsideFramework/getGpInsideFrameworkByGpId/' + gpId,
    method: 'get'
  })
}
